package com.sinochem.sales.service;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;

/**
 * @author xuan😴🐶🐱🐽🌺  <a href="zhangshixuanj@163.com">联系作者</a>
 * @version Revision:v1.0,Date: 2018/5/11 19:39
 * @project parent
 * @description 公共模块服务
 * @Modification Date: 2018/5/11 19:39  {填写修改说明}
 */
@EnableEurekaClient
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.sinochem.sales", "com.sinochem.sales.common.api"})
@ComponentScan(basePackages = {"com.sinochem.sales", "com.sinochem.sales.common.bean"})
@ImportResource("classpath:spring/spring-context.xml")
public class CommonServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(CommonServiceApplication.class, args);
        System.out.println("启动成功");
    }
}
